package com.kelvin.paopao.module.main;

import com.kelvin.paopao.module.base.IRxBusPresenter;
import com.kelvin.paopao.rxbus.RxBus;

/**
 * Created by MCK on 2017/5/18.
 */

public class MainPresenter implements IRxBusPresenter {
    private RxBus rxBus;
    private MainActivity mView;

    public MainPresenter(RxBus rxBus,MainActivity view){
        this.rxBus=rxBus;
        this.mView=view;
    }

    @Override
    public void registerRxBus() {
        rxBus.register(mView);
    }

    @Override
    public void unregisterRxBus() {
        rxBus.unRegister(mView);
    }

    @Override
    public void getData(boolean isRefresh) {

    }

    @Override
    public void getMoreData() {

    }
}
